(function () {
    axios.get('http://127.0.0.1:9094/getEightSpecialistSum', {}).then((response) => {
        var myData = response.data;
        myData.length = 16
        var myChart = echarts.init(document.getElementById('hot2'))
        option = {
            tooltip:{

            },
            series: [
                {
                    name: '数量',
                    type: 'pie',
                    radius: [50, 130],
                    center: ['50%', '50%'],
                    roseType: 'area',
                    data: myData,
                    itemStyle:{
                        normal: {
                            color: function (colors) {
                                var colorList = [
                                    '#4169E1',
                                    '#6495ED',
                                    '#B0C4DE',
                                    '#1E90FF',
                                    '#87CEFA',
                                    '#00BFFF',
                                    '#B0E0E6',
                                    '#BA55D3',
                                    '#00BFFF',
                                    '#48D1CC',
                                    '#00FFFF',
                                    '#8A2BE2',
                                    '#BA55D3',
                                    '#EE82EE',
                                    '#FF69B4',
                                    '#75bedc'
                                ];
                                return colorList[colors.dataIndex];
                            }
                        }
                    }
                }
            ]
        };
        myChart.setOption(option)
    })
})()
